<template>
    <StElDynamicForm :submit-props="{method: 'post',url:computedUrl.userAssignRole,label: '保存'}"
                     :datas="$stStringTools.replaceb(computedUrl.checkedRoleIds,{userId: $route.query.userId})"
                     :datas-format="datasFormat"
                     :options="computedFormOptions" :origin-prop="{inline: true,labelWidth: '100px'}" :helper-form="{userId: $route.query.userId}">

    </StElDynamicForm>
</template>

<script>
    import RoleUserRelMixin from '../RoleUserRelMixin.js'

    export default {
        name: "UserAssignRoleRel",
        mixins: [RoleUserRelMixin],
        data() {
            return {}
        },
        methods: {
            datasFormat(data) {
                return {
                    checkedRoleIds: data
                }
            }
        }
    }
</script>

<style scoped>

</style>